<div id="chapters">
<%= render :partial => 'chapters/chapter', :locals => { :chapter => @chapter } %>
</div>

<%= form_for([@work, @chapter]) do |f| %>

  <%= render :partial => 'hidden_fields', :locals => {:form => f} %>

  <p class="submit">
  	<% if @chapter.posted? %>
		<%= submit_tag t('.forms.update', :default => 'Update'), :name => 'update_button' %>
	<% else %>
		<%= submit_tag t('.forms.post', :default => 'Post'), :name => 'post_button' %>
	<% end %>
    <%= submit_tag t('.forms.edit', :default => 'Edit'), :name => 'edit_button' %>
    <%= submit_tag t('.forms.cancel', :default => 'Cancel'), :name => 'cancel_button' %> 
  </p>

<% end %>